package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AHotMapper;
import com.ruoyi.system.domain.AHot;
import com.ruoyi.system.service.IAHotService;

/**
 * 热搜Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-10
 */
@Service
public class AHotServiceImpl implements IAHotService 
{
    @Autowired
    private AHotMapper aHotMapper;

    /**
     * 查询热搜
     * 
     * @param id 热搜主键
     * @return 热搜
     */
    @Override
    public AHot selectAHotById(Long id)
    {
        return aHotMapper.selectAHotById(id);
    }

    /**
     * 查询热搜列表
     * 
     * @param aHot 热搜
     * @return 热搜
     */
    @Override
    public List<AHot> selectAHotList(AHot aHot)
    {
        return aHotMapper.selectAHotList(aHot);
    }

    /**
     * 新增热搜
     * 
     * @param aHot 热搜
     * @return 结果
     */
    @Override
    public int insertAHot(AHot aHot)
    {
        return aHotMapper.insertAHot(aHot);
    }

    /**
     * 修改热搜
     * 
     * @param aHot 热搜
     * @return 结果
     */
    @Override
    public int updateAHot(AHot aHot)
    {
        return aHotMapper.updateAHot(aHot);
    }

    /**
     * 批量删除热搜
     * 
     * @param ids 需要删除的热搜主键
     * @return 结果
     */
    @Override
    public int deleteAHotByIds(Long[] ids)
    {
        return aHotMapper.deleteAHotByIds(ids);
    }

    /**
     * 删除热搜信息
     * 
     * @param id 热搜主键
     * @return 结果
     */
    @Override
    public int deleteAHotById(Long id)
    {
        return aHotMapper.deleteAHotById(id);
    }
}
